<!DOCTYPE>

<html>
<head>
  <style>
    body {
      margin: 0;
    }

    .box {
      height: 200px;
      width: 200px;
      background-color: red;
      transform: translateZ(1px);
    }
    
    .indicator {
      position: absolute;
      top: 200px;
      background-color: green;
    }

    .reflected {
      -webkit-box-reflect: below 0;
    }
  </style>
  <script src="../../resources/run-after-layout-and-paint.js"></script>
  <script>
    function doTest()
    {
      runAfterLayoutAndPaint(function() {
        document.getElementById('test').style.backgroundColor = 'transparent';
      }, true);
    }
    window.addEventListener('load', doTest, false);
  </script>
</head>
<body>

  <div class="indicator box"></div>
  <!-- You should see no red box below -->
  <div id="test" class="reflected box"></div>

</body>
</html>
